package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.fellingtrees.FellingTreesEquip;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_felling_trees_equip", autoSave = true,uploadCk = true,desc = "吴刚-法宝日志")
public class LogFellingTreesEquip extends ServerBaseLog{

    public static final int TYPE_GET = 1;
    public static final int TYPE_UPGRADE = 2;
    public static final int TYPE_RECYCLE = 3;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "类型，1获得，2强化，3熔炼")
    private int type;

    @FieldTypeAnnotation(desc = "装备UID")
    private long uid;
    @FieldTypeAnnotation(desc = "装备ID")
    private int equipId;
    @FieldTypeAnnotation(desc = "基础等级")
    private int baseLv;
    @FieldTypeAnnotation(desc = "当前等级")
    private int lv;

    @FieldTypeAnnotation(desc = "途径")
    private int way;
    @FieldTypeAnnotation(desc = "装备类型")
    private int equipType;


    public LogFellingTreesEquip(int activityId, long userId, int type, FellingTreesEquip equip, int way, int equipType) {
        this.activityId = activityId;
        this.userId = userId;
        this.type = type;
        this.uid = equip.getUid();
        this.equipId = equip.getEquipId();
        this.lv = equip.getLv();
        this.baseLv = equip.getBaseLv();
        this.way = way;
        this.equipType = equipType;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public int getEquipId() {
        return equipId;
    }

    public void setEquipId(int equipId) {
        this.equipId = equipId;
    }

    public int getLv() {
        return lv;
    }

    public void setLv(int lv) {
        this.lv = lv;
    }

    public int getBaseLv() {
        return baseLv;
    }

    public void setBaseLv(int baseLv) {
        this.baseLv = baseLv;
    }

    public int getWay() {
        return way;
    }

    public void setWay(int way) {
        this.way = way;
    }

    public int getEquipType() {
        return equipType;
    }

    public void setEquipType(int equipType) {
        this.equipType = equipType;
    }
}
